package com.tvunetworks.center.device.model;

import com.tvunetworks.center.common.model.ps.PSR;
import com.tvunetworks.center.common.model.ps.PST;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author Ethan
 * @program:
 * @description:
 * @create: 2021/11/18 16:34
 **/
public class PtsPrs {

    /**
     * pts
     */
    private static Map<String, PST> PTS = new ConcurrentHashMap<>();
    /**
     * prs
     */
    private static Map<String, PSR> PRS = new ConcurrentHashMap<>();


    public static synchronized void setPts(Map<String, PST> pts) {
        PtsPrs.PTS = pts;
    }

    public static synchronized void setPrs(Map<String, PSR> prs) {
        PtsPrs.PRS = prs;
    }

    public static Map<String, PST> getPts() {
        return PTS;
    }

    public static Map<String, PSR> getPrs() {
        return PRS;
    }
}
